MyRequestFrame
Creates a new frame. This is how you would define your frame request function if you were to name itMyRequestFrame
:
OSStatus MyRequestFrame ( JMAWTContextRef context, JMFrameRef newFrame, JMFrameKind kind, const Rect* initialBounds, Boolean resizeable, JMFrameCallbacks* callbacks);
context
- The AWT context making the frame request.
newFrame
- A pointer to the new frame. on return, this parameter is the new frame.
kind
- The type of frame desired. See "Frame Types" for a list of possible values for this field.
initialBounds
- The initial dimensions of the frame.
resizeable
- A Boolean value. If false, this frame is not resizeable; if true, you can resize the frame.
callbacks
- A pointer to the frame callbacks data structure. on return, this parameter should specify the frame's callback functions. The AWT can then use these callbacks when it needs to modify a frame. See "Frame Callbacks Structure" for more information about this data structure.
- function result
- A result code. The function should return a standard result code.
DISCUSSION
When instantiating an AWT context, you must designate a callback function to handle requests for new frames.